<?php
	include("include/config.php");
	if (isset($_GET['id']))
	{
		$id = $_GET['id'];
		$sql="SELECT * FROM subcategory WHERE status=1 AND id=$id";
		$cmd = mysql_query($sql);
		if ($cmd)
		{
			$row = mysql_fetch_array($cmd);
			$pageName=$row["name"];
		}
		if ($pageName == "")
			$pageName = 'Chuyên mục không tồn tại!';
	}	
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo "$pageName - $TITLE"; ?></title>
<link type="text/css" rel="stylesheet" href="css/style.css" />
<link type="text/css" rel="stylesheet" href="css/product.css" />

<script type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>
<body>
<div id="site">
	<?php include("banner.php");?>	
</div>

<div id="main">
	<?php include("breadcrumb.php");?>
	<?php include("subcategory-main.php");?>
	<?php include("right.php"); ?>
</div>
<?php include("footer.php"); ?>
</div>
</body>
</html>
